package cn.echo.spring;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class HelloSpringTest {
	
	@Test
	public void sayHello(){
		
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("ApplicationContext.xml");
		
		HelloSpring helloSpring =(HelloSpring) applicationContext.getBean("123hello");
		helloSpring.sayHello("spring!!!");
	}

}
